<?php
/**
 * Created by PhpStorm.
 * User: 刚
 * Date: 2017/7/31
 * Time: 13:54
 */

namespace app\models;

use yii\base\Model;
use yii\helpers\Html;
use kartik\builder\Form;

class getFormAttribs extends Model{
    public function getFormAttribs() {
        return [
            'username'=>['type'=>Form::INPUT_TEXT, 'options'=>['placeholder'=>'Enter username...']],
            'password'=>['type'=>Form::INPUT_PASSWORD, 'options'=>['placeholder'=>'Enter password...']],
            'rememberMe'=>['type'=>Form::INPUT_CHECKBOX],
            'actions'=>['type'=>Form::INPUT_RAW, 'value'=>Html::submitButton('Submit', ['class'=>'btn btn-primary'])],
        ];
    }
}